<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@include file="/common/commonTag.jsp"%>
<%@include file="/common/commonJS.jsp"%>
<!DOCTYPE html>
<html>
<head>
</head>
<body>
	<!-- left menu starts -->
	<div class="container-fluid">
		<div class="row-fluid">
			<div class="well">
				<ul class="nav nav-list" id="menu">
					<c:forEach items="${menuList}" var="menu">
						<c:if test="${empty menu.action}">
							<li class="nav-header">${menu.name}</li>
						</c:if>
						<c:if test="${not empty menu.action}">
							<li>
								<a href="${path}/${menu.action}" onclick="loadMain(this,'${menu.name}')" target="mainFrame">
									<i class="${menu.icon}"></i>
									${menu.name}
								</a>
							</li>
						</c:if>
					</c:forEach>
				</ul>
			</div>
		</div>
	</div>
	<!-- left menu ends -->
</body>
<script type="text/javascript">
	
	function loadMain(href,menuName){
		$("#menu li").removeClass("active");
		
		$(href).parent().addClass("active");
		
		$("#navLabel",self.parent.document).text(menuName);
		
		return true;
	}
</script>
</html>
